import {ApplyNowList,ApplyNowListExclName,ApplyNowListExcl,ApplyNowDetail} from "../../types/requestTypes"
import request from "../request";
import {ResponseRET , ExclFileName} from "../../types/responseTypes"
/**
 * 查看专业班报名缴费人数、剩余学位及班级状态
 * @param name
 */

export const getApplyNowList = (params:ApplyNowList):Promise<ResponseRET>=> request.post( '/restapi/STUA_mbreport_new/RD_CLASS_BM_QK',params,true)

/**
 * 生成excl表格名字
 * @param name
 */

export const getApplyNowListExclName = (params:ApplyNowListExclName):Promise<ExclFileName>=> request.post( '/restapi/STUA_mbreport_dc/RD_CLASS_BM_QK_DC',params,true)

/**
 * 生成excel表格
 * @param name
 */

export const DownApplyNowListExcl = (params:ApplyNowListExcl):Promise<any>=> request.get( '/excel_server/browse',params,false)

/**
 * 查看专业班报名和缴费详情
 * @param name
 */

export const getApplyNowDetail = (params:ApplyNowDetail):Promise<ResponseRET>=> request.post( '/restapi/STUA_mbreport_new/RD_CLASS_BMJF_QK',params,true)

/**
 * 生成excl表格名字
 * @param name
 */

export const getApplyNowDetailExclName = (params:ApplyNowListExclName):Promise<ExclFileName>=> request.post( '/restapi/STUA_mbreport_dc/RD_CLASS_BMJF_QK_DC',params,true)
